<?php
basename($_SERVER["PHP_SELF"]) == 'inc.genealogy_tab.php' && exit('Invalid Access!');

//tab
$css="<link rel='stylesheet' type='text/css' href='".CSS_URL."/tab/tab".(USER_BROWSER=='msie'? "-ie" : "").".css' />\n";
$tab=
"<ul class='tabs-nav' id='_tab'>
	<li class='tabs-".($this_file==$vars['file']['admin']['genealogy']? "" : "un")."selected' rel=''><a href='".$vars['file']['admin']['genealogy']."?uid={$get_s[uid]}'><span>".__("Sponsor Genealogy")."</span></a></li>
	<li class='tabs-".($this_file==$vars['file']['admin']['export_genealogy']? "" : "un")."selected' rel=''><a href='".$vars['file']['admin']['export_genealogy']."?uid={$get_s[uid]}&network=".($get_s['network']? $get_s['network'] : ($this_file == $vars['file']['admin']['genealogy']? 's' : 'p'))."'><span>".__("Export Genealogy")."</span></a></li>
</ul>
<div id='gen_network' class='tabs-panel' style='width:97%; padding-left:10px;'><%tab_content%></div>";
?>